<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateDepositeTable extends Migration
{
    /**
     * Run the migrations.
     * 入金表
     * @return void
     */
    public function up()
    {
        Schema::create('deposite', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('user_id')->comment('用户id');
            $table->decimal('usd_amount',16,4)->comment('入金金额');
            $table->string('notes')->nullable()->comment('注释');
            $table->string('type')->default('0')->comment('充值类型(1正常入金2赠送入金)');
            $table->integer('admin_id')->comment('操作人id');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('deposite');
    }
}
